python how to find the highest number in a dictionary

115

python how to find the highest number in a dictionary -

a_dictionary = {"a": 1, "b": 2, "c": 3}

max_key = max(a_dictionary, key=a_dictionary.get)
get key with max value


print(max_key)

Comments

Submit
0 Comments